package cn.lingyangwl.agile.system.model.rqrs.config;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * 敏感配置请求
 * @author shenguangyang
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class ConfigGetReq {
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String configKey;

    /**
     * 是否脱敏
     */
    private Boolean isDesensitization = Boolean.FALSE;

    public ConfigGetReq(String configKey) {
        this.configKey = configKey;
    }
}
